From ec2257e53c618c2e33b1e77aa62b6dd24a107c21 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 9 Mar 2016 17:25:33 +0100 Subject: [PATCH] wayland: Unset the source-side DnD fd after passing it to the stream The ownership is given to the stream, so unset it here. --- gdk/wayland/gdkselection-wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c index 30f35461f7..1826bb2daf 100644 --- a/gdk/wayland/gdkselection-wayland.c +++ b/gdk/wayland/gdkselection-wayland.c @@ -597,6 +597,8 @@ async_write_data_new (GdkWaylandSelection *selection) write_data->stream = g_unix_output_stream_new (selection->stored_selection.fd, TRUE); + selection->stored_selection.fd = -1; + return write_data; } -- 2.30.2